home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 20
/
PC Gamer IT CD 20.bin
/
MEDIA
/
DEMOS.DXR
/
00032_Field_click.txt
< prev
next >
Wrap
Text File
|
1997-03-31
|
637b
|
24 lines
on mouseDown
puppetSound(2) "Sound2"
ClickMe
end
on ClickMe
set spriteNum = the clickOn
set offCast = the castNum of sprite spriteNum
set onCast = offCast+1
set the castNum of sprite spriteNum = onCast
updateStage
repeat while the mouseDown
scrollByLine member"zlist", -1
if (rollover(spriteNum)) then
set the castNum of sprite spriteNum = onCast
else
set the castNum of sprite spriteNum = offCast
end if
updateStage
end repeat
set the castNum of sprite spriteNum = offCast
updateStage
return (rollover(spriteNum)) -- TRUE if released on sprite
end ClickMe